package com.douxg.fastCoding.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.douxg.fastCoding.spring.base.MyBaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Auther douxg
 * @Date 2021/6/16 18:41
 */
@TableName("dict")
@Data
@Accessors(chain = true)
public class Dict extends MyBaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("parent_id")
    private Integer parentId;
    @TableField
    private String type;
    @TableField
    private String label;
    @TableField
    private String value;
    @TableField
    private Integer sort;

    public interface Column {
        String ID = "id";
        String PARENT_ID = "parent_id";
        String VALUE = "value";
        String LABEL = "label";
        String TYPE = "type";
        String SORT = "sort";
    }
}
